package com.cqndt.disaster.device.controller;

import com.cqndt.disaster.device.util.AjaxResult;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.cqndt.disaster.device.service.AppTabStaticTypeService;

/**
 * @author lgb
 * @date 2020-9-1
 * @return 静态值获取
 **/
@RestController
@RequestMapping(value = "/api/v2")
public class StaticTypeController extends BaseController{

    @Autowired
    private AppTabStaticTypeService tabStaticTypeService;

    @RequestMapping(value = "/static/type",method = RequestMethod.GET)
    public AjaxResult getAllReportStaticType(){
        return entityResult(tabStaticTypeService.selectByStaticNum("18"),"获取报表类型");
    }

    /**
     * @return 获取类型列表
     **/
    @RequestMapping(value = "/type",method = RequestMethod.GET)
    public AjaxResult getAllType(){
        return entityResult(tabStaticTypeService.selectByStaticNum("4"),"获取所有类型");
    }

    /**
     * @return 获取监测类型列表
     **/
    @RequestMapping(value="/getMonitorAllType")
    public AjaxResult getMonitorAllType(){
        return entityResult(tabStaticTypeService.selectByStaticNum("13"),"获取所有监测方法类型");
    }

}